package cn.joker.services;

import cn.joker.constant.Result;
import cn.joker.entity.po.Permissions;
import cn.joker.entity.po.Systems;
import cn.joker.entity.vo.PermissionTreeVO;

import java.util.List;

public interface IPermissionService {
    Result<List<PermissionTreeVO>> getPermissionTree(Systems systems);

    Result<String> addPermission(Permissions permissions);

    Result<Permissions> getPermissionByCode(Permissions permissions);
}
